package analiseSemantica;

    public class UnaryExpr {

      
        UnaryExpr unaryExprRef = null;         // ou para UnaryExpr para Expr e gerar a lista
        UnaryOp unaryOpRef = null ;             // ou para Lista de UnaryOp
        PostFixExpr postFixExprRef = null;     // ou para PostFixExpr
        public int line;

        public UnaryExpr(Object ob) {
            if( ob instanceof PostFixExpr )
            this.postFixExprRef = (PostFixExpr) ob;
        }

        public UnaryExpr(Object ob , Object ob2) {
            if( ob instanceof UnaryOp)
            this.unaryOpRef = (UnaryOp) ob;
            
            if( ob2 instanceof UnaryExpr)
            this.unaryExprRef = (UnaryExpr) ob2;
        }

        public PostFixExpr getPostFixExprRef() {
            return postFixExprRef;
        }

        public void setPostFixExprRef(PostFixExpr postFixExprRef) {
            this.postFixExprRef = postFixExprRef;
        }

        public UnaryExpr getUnaryExprRef() {
            return unaryExprRef;
        }

        public void setUnaryExprRef(UnaryExpr unaryExprRef) {
            this.unaryExprRef = unaryExprRef;
        }

        public UnaryOp getUnaryOpRef() {
            return unaryOpRef;
        }

        public void setUnaryOpRef(UnaryOp unaryOpRef) {
            this.unaryOpRef = unaryOpRef;
        }
        
        
   






    }


